package com.meteor.service;

import com.github.pagehelper.PageInfo;
import com.meteor.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    User selectUserByUsernameAndPwd(String username,String password);

    PageInfo<User> selectAll(Integer pageNum, String username);

    int insertUser(User user);

    User selectUser(String username);

    int deleteUserById(Integer id);

    int updateUserById(User user);


    //-------------------------------------------------前端用户中心--------------------------------------------------------------

    //修改账号密码
    int updateUserByUserName(String newname, String password,String oldname);

    int updateUserMoney(Double money,String username);
}
